function postAjax(type){
	if(!type)
		type = "html";
	var xmlHttp;
	if(window.ActiveXObject){	
		try{
			xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch(e){
			xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
		}
	}else if(window.XMLHttpRequest){
		xmlHttp = new XMLHttpRequest();
		if(xmlHttp.overrideMimeType) {
			xmlHttp.overrideMimeType('text/' + type);
		}
	}
	if (!xmlHttp) 
		return null;
	this.connect = function(sendUrl,postString,callBack){
		if (!xmlHttp) 	 	return false;

		xmlHttp.open("POST", sendUrl, true);
		xmlHttp.setRequestHeader("Method", "POST"+sendUrl+" HTTP/1.1");
		xmlHttp.setRequestHeader("Content-Type",
					"application/x-www-form-urlencoded");
		//if(type == 'xml')
		//xmlHttp.setRequestHeader("Content-Type", "text/" + type);
		

		xmlHttp.onreadystatechange = function(){
			if (xmlHttp.readyState == 4){
				if(xmlHttp.status==200)	
					callBack(xmlHttp);
			}
		};

		xmlHttp.send(postString);

		return true;
	};
	return this;
}
function getAjax(type){
	if(!type)
		type = "html";
	var xmlHttp;
	if(window.ActiveXObject){	
		try{
			xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch(e){
			xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
		}
	}else if(window.XMLHttpRequest){
		xmlHttp = new XMLHttpRequest();
		if(xmlHttp.overrideMimeType) {
			xmlHttp.overrideMimeType('text/' + type);
		}
	}
	if (!xmlHttp) 
		return null;
	this.connect = function(sendUrl,postString,callBack){
		if (!xmlHttp) 	 	return false;

		xmlHttp.open("GET",sendUrl+postString);

		xmlHttp.onreadystatechange = function(){
			if (xmlHttp.readyState == 4){
				if(xmlHttp.status==200)	
					callBack(xmlHttp);
			}
		};

		xmlHttp.send(null);

		return true;
	};
	return this;
}